import React from 'react';
import {Route} from 'react-router';
import {WeaLocaleProvider} from 'ecCom';

import View from './components/View';
import Setting from './components/Setting';
// 多语言
const getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, 'portal');

const Routes = (
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@ulzldg`} path='portal' onEnter={getLocaleLabel}>
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@7136ct`} path="staffKanbanView" component={View}/>
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@2o1wzz`} path="staffKanbanSetting" component={Setting}/>
    </Route>
);

module.exports = {
    Route: Routes,
    com: {
        View,
        Setting
    },
    titles: {
        'View': '人员看板元素',
        'Setting': '人员看板设置',
    }
};
